#!/bin/bash
# DATE: 2020-12-30 16:59:53
# FileName:     set_lang.sh
# Description:  设置系统语言
#
# Depend:       get-sys
Depend=(
    get-sys.sh
)
#####################################################################################
echo -e "\e[1;42m加载支持..\e[0m"
for i in ${Depend[@]};do
    if [ -f $i ];then
        echo "source ${i}"
        source ${i}
    else
        echo "source <(curl -sLk https://gitee.com/uon/conf/raw/master/${i})"
        source <(curl -sLk https://gitee.com/uon/conf/raw/master/${i})
    fi
done
echo -e "\e[1;32m加载完毕\e[0m"
#####################################################################################



function set_lang()
{
    apt install -y language-pack-zh-hans
    locale -a|grep -q 'zh_CN.utf8'
    if [ $? == 0 ];then
        LANG="zh_CN.utf8"
    fi
}